package com.wsoft.hr.pm.controller;

import com.wsoft.hr.pm.query.template.his.HisInfoQuery;
import com.wsoft.hr.pm.service.IHrPmMemberTemplateTargetHisService;
import com.wsoft.response.ResponseResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 人员模版指标历史记录表 前端控制器
 * @author zhanggukai
 * @since 2025年03月01日 14:23:05
 */
@RestController
@Tag(name = "人员模版指标历史")
@RequestMapping("/hr/pm/member/template/target/his")
public class HrPmMemberTemplateTargetHisController {

@Resource
private IHrPmMemberTemplateTargetHisService templateTargetHisService;

    @Operation(summary = "模版指标-详情", description = "模版指标-详情")
    @PostMapping("/get")
    public ResponseResult get(@RequestBody HisInfoQuery query) {
        return ResponseResult.success(templateTargetHisService.getMemberTargetHisInfo(query));
    }
}
